/**
 * Copyright (C) 2025 pony working team
 * SPDX-License-Identifier: MulanPSL-2.0
 */

#include <stdio.h>

#include <hal_sys.h>

#define APP_START_ADDR 0x8020000

int main(void)
{
    printf("hello pony bootloader :-)\n");

    if (hal_sys_ioctl(HAL_SYS_CMD_LOAD, APP_START_ADDR) != 0) {
        printf("load app@%x failed, \n", APP_START_ADDR);
        return -1;
    }

    return 0;
}
